Visual Basic (Declaration) | |
---|---|
Function GetOrAdd( _ ByVal key As TKey, _ ByVal value As TValue _ ) As TValue |
Parameters
- key
- The key of the element to add.
- value
- The value to be added, if the key does not already exist.
Exception | Description |
---|---|
System.NotSupportedException | The IDictionary is read-only. |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7